/*表单开关样式*/
.ui-switch {
    right: 17px;
    top: 0;
    transform: translateY(-30%);
}

.ui-switch input {
    width: .7rem;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    border: 0;
    background: 0 0;
    -webkit-appearance: none;
    outline: 0
}

.ui-switch input:before {
    content: '';
    width: .74rem;
    height: .16rem;
    background-color: #fdfdfd;
    border-radius: .2rem;
    cursor: pointer;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    box-sizing: content-box;
    box-shadow: #D5DCDF 0 0 0 0.16rem inset;
    transition: border .4s, box-shadow .4s;
    background-clip: content-box

}

.ui-switch input:checked:before {
    box-shadow: #4a82d1 0 0 0 0.16rem inset;
    background-color: #4a82d1;
    transition: border .4s, box-shadow .4s, background-color 1.2s;
    background-color: #4a82d1;

}


.ui-switch input:checked:after {
    left: .4rem;
}

.ui-switch input:after {
    content: '';
    width: 22px;
    height: 22px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    border-radius: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .4);
    transition: left .2s;
}

.ui-switch.switch-size {
    width: auto;
    height: .3rem;
}
.switch-location{
    position: relative;
}